﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="HouseManager.Add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>添加</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h2>添加房屋信息</h2>
            <table>
                <tr>
                    <td>小区名称:</td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="小区名称不能为空" ControlToValidate="txtName" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>面积:</td>
                    <td>
                        <asp:TextBox ID="txtArea" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="面积不能为空" ControlToValidate="txtArea" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>期望售价:</td>
                    <td>
                        <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="期望售价不能为空" ControlToValidate="txtPrice" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>层数:</td>
                    <td>
                        <asp:TextBox ID="txtFloorCount" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="层数为空" ControlToValidate="txtFloorCount" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>所在楼层:</td>
                    <td>
                        <asp:TextBox ID="txtFloor" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="所在楼层不能为空" ControlToValidate="txtFloor" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>状态:</td>
                    <td>
                        <asp:RadioButtonList ID="rState" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="0">上架</asp:ListItem>
                            <asp:ListItem Value="1">下架</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>年限:</td>
                    <td>
                        <asp:TextBox ID="txtYears" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="年限不能为空" ControlToValidate="txtYears" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>类型:</td>
                    <td>
                        <asp:DropDownList ID="drType" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>房屋简介:</td>
                    <td>
                        <asp:TextBox ID="txtDescribe" runat="server" Height="124px" TextMode="MultiLine" Width="224px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="房屋简介不能为空" ControlToValidate="txtDescribe" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align:center;">
                        <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
